<?php $__env->startSection('title','帖子列表'); ?>
<?php $__env->startSection('body'); ?>

    <div class="container">
        <?php $__currentLoopData = $post; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="items">
        <div class="item">
            <div class="item-heading">
                <div class="pull-right label label-success"><?php echo e($user['category']['title']); ?></div>
                <h4><a href="/admin/post_new?id=<?php echo e($user['postID']); ?>"><?php echo e($user['title']); ?></a></h4>
            </div>
            <div class="item-content">
                <?php if(!empty($user['images'])): ?>
                    <div class="media pull-right">
                        <img src="<?php echo e($user['images'][0]); ?>" width="40%" height="10%">
                    </div>
                <?php endif; ?>
                <?php echo e($user['detail']); ?>

            </div>
            <div class="item-footer">
                <a href="#" class="text-muted"><i class="icon-comments"></i> <?php echo e($user['commentCount']); ?></a> &nbsp; <span class="text-muted">
                <?php
                echo date("y-m-d h:i:s",substr($user['createTime'],0,-3));
                ?>
                </span>
            </div>
        </div>
    </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <a href="?page=<?php echo e(($items-20)); ?>" class="btn btn-link">上一页</a>
            <a href="?page=<?php echo e($items); ?>" class="btn btn-link">下一页</a>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('public.pub', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>